import { CTX, GridController, IControlProvider } from '@ibiz-template/runtime';
import { IDEGrid } from '@ibiz/model-core';
import { AggGridController } from './agg-grid-controller';

export class AggGridProvider implements IControlProvider {
  component: string = 'IBizGridControl';

  createController(
    modelData: IDEGrid,
    context: IContext,
    param: IParams,
    ctx: CTX,
  ): GridController {
    const c = new AggGridController(modelData, context, param, ctx);
    return c;
  }
}
